/* Medium风格的Markdown主题 */
.markdown-theme-medium {
  font-family: 'Charter', 'Georgia', serif;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.84);
  background-color: #fff;
  padding: 20px;
  max-width: 740px;
  margin: 0 auto;
}

.markdown-theme-medium h1,
.markdown-theme-medium h2,
.markdown-theme-medium h3,
.markdown-theme-medium h4,
.markdown-theme-medium h5,
.markdown-theme-medium h6 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.7em;
  letter-spacing: -0.02em;
}

.markdown-theme-medium h1 {
  font-size: 2.5em;
  line-height: 1.2;
  margin-top: 0.6em;
  margin-bottom: 0.6em;
}

.markdown-theme-medium h2 {
  font-size: 1.9em;
  line-height: 1.3;
}

.markdown-theme-medium h3 {
  font-size: 1.5em;
}

.markdown-theme-medium h4 {
  font-size: 1.3em;
}

.markdown-theme-medium p {
  margin-bottom: 1.5em;
  font-size: 1.1em;
}

.markdown-theme-medium a {
  color: #03a87c;
  text-decoration: none;
  border-bottom: 1px solid rgba(3, 168, 124, 0.3);
}

.markdown-theme-medium a:hover {
  border-bottom: 1px solid #03a87c;
}

.markdown-theme-medium blockquote {
  border-left: 3px solid rgba(0, 0, 0, 0.84);
  padding-left: 20px;
  margin-left: 0;
  font-style: italic;
  color: rgba(0, 0, 0, 0.68);
}

.markdown-theme-medium code {
  font-family: 'Menlo', monospace;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 0.9em;
}

.markdown-theme-medium pre {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 20px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.markdown-theme-medium pre code {
  background-color: transparent;
  padding: 0;
}

.markdown-theme-medium img {
  max-width: 100%;
  margin: 1.5em auto;
  display: block;
}

.markdown-theme-medium hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 2em 0;
}

.markdown-theme-medium ul,
.markdown-theme-medium ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.markdown-theme-medium li {
  margin-bottom: 0.5em;
}

.markdown-theme-medium table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
}

.markdown-theme-medium table th,
.markdown-theme-medium table td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  text-align: left;
}

.markdown-theme-medium table th {
  background-color: rgba(0, 0, 0, 0.03);
  font-weight: 600;
}

/* 暗色模式 */
.dark-mode .markdown-theme-medium {
  color: rgba(255, 255, 255, 0.84);
  background-color: #121212;
}

.dark-mode .markdown-theme-medium h1,
.dark-mode .markdown-theme-medium h2,
.dark-mode .markdown-theme-medium h3,
.dark-mode .markdown-theme-medium h4,
.dark-mode .markdown-theme-medium h5,
.dark-mode .markdown-theme-medium h6 {
  color: rgba(255, 255, 255, 0.95);
}

.dark-mode .markdown-theme-medium a {
  color: #03a87c;
  border-bottom: 1px solid rgba(3, 168, 124, 0.3);
}

.dark-mode .markdown-theme-medium blockquote {
  border-left: 3px solid rgba(255, 255, 255, 0.84);
  color: rgba(255, 255, 255, 0.68);
}

.dark-mode .markdown-theme-medium code {
  background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .markdown-theme-medium pre {
  background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .markdown-theme-medium hr {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .markdown-theme-medium table th,
.dark-mode .markdown-theme-medium table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .markdown-theme-medium table th {
  background-color: rgba(255, 255, 255, 0.05);
} 